package com.gz.tank;

public class Bomb {
    int x ;
    int y ;
    int  life=9;

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }

    boolean islive=true;
    //减少生命值
    public void lifedown(){
        if(life>0){
            life--;
        }
        else{
            islive=false;
        }
    }
}
